-----------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/thomasaltmann/Desktop/CMPS Research Article/CMPS Reproduce Data/repli
> cation_log.log
  log type:  text
 opened on:  21 Jun 2020, 09:57:28

. do "/Users/thomasaltmann/Desktop/CMPS Research Article/CMPS Reproduce Data/replication_
> command(STATA).do"

. sum fatalities sanctions_decay gd_ptsa wdi_pop mad_gdppc fh_ipolity2 COW_civil_war if e
> (sample)==1

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
  fatalities |      1,241    67.46092    344.4999          0       6665
sanctions_~y |      1,241    .1428393    .2836739          0          1
     gd_ptsa |      1,241    2.986301    1.112527          1          5
     wdi_pop |      1,241    16.68156     1.52738   13.99242   21.00939
   mad_gdppc |      1,241    8.371433    1.138055   6.539586   10.83766
-------------+---------------------------------------------------------
 fh_ipolity2 |      1,241    4.596481    3.382583        .25         10
COW_civil_~r |      1,241    .1329573    .3396655          0          1

. xtnbreg fatalities sanctions_decay gd_ptsa wdi_pop mad_gdppc fh_ipolity2 COW_civil_war,
>  re exposure(year)

Fitting negative binomial (constant dispersion) model:

Iteration 0:   log likelihood = -139055.84  
Iteration 1:   log likelihood = -138139.64  
Iteration 2:   log likelihood = -138138.23  
Iteration 3:   log likelihood = -138138.23  

Iteration 0:   log likelihood = -78506.915  
Iteration 1:   log likelihood = -3740.0026  
Iteration 2:   log likelihood = -3738.0557  
Iteration 3:   log likelihood =  -3738.053  
Iteration 4:   log likelihood =  -3738.053  

Iteration 0:   log likelihood =  -3738.053  
Iteration 1:   log likelihood = -3585.5288  
Iteration 2:   log likelihood = -3556.1153  
Iteration 3:   log likelihood = -3555.4116  
Iteration 4:   log likelihood =  -3555.411  
Iteration 5:   log likelihood =  -3555.411  

Fitting full model:

Iteration 0:   log likelihood = -28001.901  (not concave)
Iteration 1:   log likelihood = -4792.6097  (not concave)
Iteration 2:   log likelihood = -3837.0297  
Iteration 3:   log likelihood = -3444.9319  
Iteration 4:   log likelihood = -3411.5676  
Iteration 5:   log likelihood =  -3409.884  
Iteration 6:   log likelihood = -3409.8732  
Iteration 7:   log likelihood = -3409.8732  

Random-effects negative binomial regression     Number of obs     =      1,241
Group variable: country_id                      Number of groups  =         44

Random effects u_i ~ Beta                       Obs per group:
                                                              min =         11
                                                              avg =       28.2
                                                              max =         33

                                                Wald chi2(6)      =     192.75
Log likelihood  = -3409.8732                    Prob > chi2       =     0.0000

---------------------------------------------------------------------------------
     fatalities |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------+----------------------------------------------------------------
sanctions_decay |   .3792911   .1329324     2.85   0.004     .1187484    .6398337
        gd_ptsa |   .4134137   .0533345     7.75   0.000       .30888    .5179475
        wdi_pop |    .147267    .033058     4.45   0.000     .0824745    .2120596
      mad_gdppc |   .0458894   .0484243     0.95   0.343    -.0490203    .1407992
    fh_ipolity2 |    .139011   .0176272     7.89   0.000     .1044624    .1735597
  COW_civil_war |   .5098055   .1083822     4.70   0.000     .2973803    .7222307
          _cons |  -14.26419   .6810082   -20.95   0.000    -15.59894   -12.92944
       ln(year) |          1  (exposure)
----------------+----------------------------------------------------------------
          /ln_r |  -.7091728   .2115258                     -1.123756   -.2945899
          /ln_s |   1.894178   .4357515                      1.040121    2.748235
----------------+----------------------------------------------------------------
              r |   .4920511   .1040815                      .3250567     .744837
              s |   6.647081   2.896476                      2.829558    15.61505
---------------------------------------------------------------------------------
LR test vs. pooled: chibar2(01) = 291.08               Prob >= chibar2 = 0.000

. menbreg fatalities sanctions_decay gd_ptsa wdi_pop mad_gdppc fh_ipolity2 COW_civil_war,
>  exposure(year) || country_id: R.sanctions_decay

Fitting fixed-effects model:

Iteration 0:   log likelihood =  -5803.106  
Iteration 1:   log likelihood = -3745.5781  
Iteration 2:   log likelihood =  -3614.267  
Iteration 3:   log likelihood = -3554.5148  
Iteration 4:   log likelihood =  -3551.455  
Iteration 5:   log likelihood = -3551.4414  
Iteration 6:   log likelihood = -3551.4414  

Refining starting values:

Grid node 0:   log likelihood = -3511.1727

Fitting full model:

Iteration 0:   log likelihood = -3511.1727  
Iteration 1:   log likelihood = -3496.4269  
Iteration 2:   log likelihood = -3462.3384  
Iteration 3:   log likelihood = -3460.5323  
Iteration 4:   log likelihood = -3460.4998  
Iteration 5:   log likelihood =  -3460.501  
Iteration 6:   log likelihood =  -3460.501  

Mixed-effects nbinomial regression              Number of obs     =      1,241
Overdispersion:            mean
Group variable:      country_id                 Number of groups  =         44

                                                Obs per group:
                                                              min =         11
                                                              avg =       28.2
                                                              max =         33

Integration method: mvaghermite                 Integration pts.  =          7

                                                Wald chi2(6)      =     238.55
Log likelihood =  -3460.501                     Prob > chi2       =     0.0000
----------------------------------------------------------------------------------------
            fatalities |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------------+----------------------------------------------------------------
       sanctions_decay |   .7814066   .4358985     1.79   0.073    -.0729388    1.635752
               gd_ptsa |   1.127334   .1022907    11.02   0.000      .926848     1.32782
               wdi_pop |    .403629   .1072218     3.76   0.000     .1934782    .6137799
             mad_gdppc |  -.3088839     .14284    -2.16   0.031    -.5888451   -.0289227
           fh_ipolity2 |   .2639416   .0474058     5.57   0.000      .171028    .3568552
         COW_civil_war |   1.664396   .2733085     6.09   0.000     1.128722    2.200071
                 _cons |  -14.84769   2.029309    -7.32   0.000    -18.82506   -10.87032
              ln(year) |          1  (exposure)
-----------------------+----------------------------------------------------------------
              /lnalpha |    1.55081   .0577153                       1.43769     1.66393
-----------------------+----------------------------------------------------------------
country_id>            |
sanctions_decay        |
             var(_cons)|   2.317099   .4873951                      1.534253    3.499391
----------------------------------------------------------------------------------------
LR test vs. nbinomial model: chibar2(01) = 181.88     Prob >= chibar2 = 0.0000

. xtreg success_rate sanctions_decay gd_ptsa wdi_pop mad_gdppc fh_ipolity2 COW_civil_war,
>  re

Random-effects GLS regression                   Number of obs     =      1,241
Group variable: country_id                      Number of groups  =         44

R-sq:                                           Obs per group:
     within  = 0.0367                                         min =         11
     between = 0.4266                                         avg =       28.2
     overall = 0.1519                                         max =         33

                                                Wald chi2(6)      =      82.50
corr(u_i, X)   = 0 (assumed)                    Prob > chi2       =     0.0000

---------------------------------------------------------------------------------
   success_rate |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
----------------+----------------------------------------------------------------
sanctions_decay |   .0535022   .0438949     1.22   0.223    -.0325303    .1395347
        gd_ptsa |   .0802113   .0156484     5.13   0.000     .0495411    .1108815
        wdi_pop |   .0487834     .01601     3.05   0.002     .0174043    .0801625
      mad_gdppc |  -.0054482   .0212223    -0.26   0.797    -.0470431    .0361467
    fh_ipolity2 |   .0271635   .0062908     4.32   0.000     .0148337    .0394933
  COW_civil_war |   .1400566   .0376939     3.72   0.000      .066178    .2139352
          _cons |  -.6208124   .3129368    -1.98   0.047    -1.234157   -.0074675
----------------+----------------------------------------------------------------
        sigma_u |   .1436361
        sigma_e |  .38661622
            rho |  .12128697   (fraction of variance due to u_i)
---------------------------------------------------------------------------------

. 
end of do-file

. log close
      name:  <unnamed>
       log:  /Users/thomasaltmann/Desktop/CMPS Research Article/CMPS Reproduce Data/repli
> cation_log.log
  log type:  text
 closed on:  21 Jun 2020, 09:57:43
-----------------------------------------------------------------------------------------
